import time
import pickle




class B:
    e = 'adsad'
    f = 'adadadada'
    def __init__(self, h, i):
        self.e = h
        self.f = i

class A:
    c = 0
    b = 1
    def __init__(self, h, i, d):
        self.d = d
    e = B('default', 'default')
c = pickle.load(open('testdump', 'rb'))
a = A(999, 888, [])
a.d.append(B('1', '11212121')) 
a.d.append(B('2', '222222233'))
a.d.append(B('3', '33333333'))
a.e = B('4', 'eeeee')
pickle.dump(a, open('testdump', 'wb'))
d = pickle.load(open('testdump', 'rb'))


t = time.time()
time.sleep(2)
print(str(time.time() - t))
s = open('life.py', 'r').read()
print(s)
local_vars = {'s': s}
exec(s, {}, local_vars)
print(local_vars['result'])